
<!--#begin changepassword -->
<br>
<form method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options" />
<input type="hidden" name="update" value="password" />
<table  width="95%" border="0" cellspacing="0" cellpadding="2" align="center">
	<tr> 
	<td class="BabLoginCadreBackground" align="center" valign="middle"> 
		<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">

		<!--#if changepwd -->
		<tr> 
			<td width="50%" align="right">{ oldpwd }:</td>
			<td width="50%" valign="middle"> 
				<input type="password" name="oldpwd" size="20" maxlength="255" />
			</td>
		</tr>
		<tr> 
			<td align="right">{ newpwd }:</td>
			<td valign="middle"> 
				<input type="password" name="newpwd1" size="20" maxlength="255" />
			</td>
		</tr>
		<tr> 
			<td align="right">{ renewpwd }:</td>
			<td valign="middle"> 
				<input type="password" name="newpwd2" size="20" maxlength="255" />
			</td>
		</tr>
		<tr> 
			<td nowrap>&nbsp;</td>
			<td valign="middle"> 
				<input type="submit" name="submit" value="{ update }" />
			<br>
			</td>
		</tr>
		<!--#endif changepwd -->
		</table>
	</td>
	</tr>
</table>
</form>
<br>
<!--#end changepassword -->

<!--#begin changePasswordUnload -->
<br><br>
	<table class="BabLoginMenuBackground" width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
	<tr> 
	<td> 
		<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
		<tr> 
			<td class="BabErrorMessage" colspan="2" align="center">{ message }</td>
		</tr>
		<tr align="left" valign="middle">
			<td class="BabWarningBodyBackground" colspan="2" align="center"><a href="javascript:this.close()">{ close }</a> </td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
<br>
<script type="text/javascript">
	setTimeout("this.close()","1000");
</script>
<!--#end changePasswordUnload -->

<!--#begin changeuserinfo -->
<br>
<table border="0" width="90%" cellpadding="3" cellspacing="0" align="center">
<tr>
<td class="BabLoginMenuBackground" align="center" valign="center">{ title }</td>
</tr>
</table>
<br>

<form method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="update" value="userinfo">
<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td class="BabLoginCadreBackground" align="center" valign="middle"> 
<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
<tr> 
<td width="30%" align="right" nowrap 
valign="middle">{ password }:</td>
<td width="70%" valign="middle"> 
<input type="password" name="password" size="20" maxlength="255">
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ firstname }:</td>
<td valign="middle"> 
<input type="text" name="firstname" size="30" maxlength="60" value="{ firstnameval }">
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ middlename }:</td>
<td valign="middle"> 
<input type="text" name="middlename" size="30" maxlength="60" value="{ middlenameval }">
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ lastname }:</td>
<td valign="middle"> 
<input type="text" name="lastname" size="30" maxlength="60" value="{ lastnameval }">
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ nickname }:</td>
<td valign="middle"> 
<input type="text" name="nickname" size="30" maxlength="60" value="{ nicknameval }">
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ email }:</td>
<td valign="middle"> 
<input type="text" name="email" size="30" maxlength="60" value="{ emailval }">
</td>
</tr>
<tr> 
<td nowrap>&nbsp;</td>
<td valign="middle"> 
<input type="submit" name="submit" value="{ update }">
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br>
<!--#end changeuserinfo -->

<!--#begin changenickname -->
<!--#if bupdateuserinfo -->
<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td class="BabLoginCadreBackground" align="center" valign="middle"> 
	<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
	<tr><td align="center" valign="middle">
	<input type="button" value="{ updateuserinfo }" onclick="Start('{ urldbmod }', 'OviDir', 'width=550,height=500,status=no,resizable=yes,top=50,left=200,scrollbars=yes');" />
	</td></tr></table>
</td></tr></table>
<br>
<!--#endif bupdateuserinfo -->
<!--#if changepassword -->
<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td class="BabLoginCadreBackground" align="center" valign="middle"> 
	<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
	<tr><td align="center" valign="middle">

	<input type="button" value="{ changepassword }" onclick="Start('{ urlchangepassword }', 'OviDir', 'width=450,height=170,status=no,resizable=yes,top=50,left=200,scrollbars=yes');" />

	</td></tr></table>
</td></tr></table>
<br>
<!--#endif changepassword -->
<!--#if changenickname -->
<form method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="update" value="nickname">
<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td class="BabLoginCadreBackground" align="center" valign="middle"> 
<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
<tr> 
<td width="30%" align="right" nowrap 
valign="middle">{ password }:</td>
<td width="70%" valign="middle"> 
<input type="password" name="password" size="20" maxlength="255">
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ nickname }:</td>
<td valign="middle"> 
<input type="text" name="nickname" size="30" maxlength="60" value="{ nicknameval }">
</td>
</tr>
<tr> 
<td nowrap>&nbsp;</td>
<td valign="middle"> 
<input type="submit" name="submit" value="{ update }">
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br>
<!--#endif changenickname -->
<!--#end changenickname -->


<!--#begin changelang -->
<form method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="update" value="lang">
	<table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
	<tr> 
	<td class="BabLoginCadreBackground"> 
		<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
		<tr> 
		<td align="center" nowrap valign="middle"> 
			{ title }
		</td>
		</tr>
		<tr> 
		<td align="center" nowrap valign="middle"> 
		<select name="lang">
		<option value="">{ sitelangageval }</option>
		<!--#in getnextlang -->
		<option value="{ langval }" { langselected }>{ langname }</option>

		<!--#endin getnextlang -->
		</select>
		</td>
		</tr>
		<tr> 
		<td align="center">{ langfiltertxt } </td>
		</tr>
		<tr>
		<td align="center" nowrap valign="middle">
			<select name="langfilter">
			<!--#in getnextlangfilter -->
			<option value="{ langfilterval }" { langfilterselected }>{ langfilterval }</option>
			<!--#endin getnextlangfilter -->
			</select>
		</td>
		</tr>
		<tr> 
		<td align="center"> 
			<input type="submit" name="submit" value="{ update }" />
		<br>
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
<br>
</form>
<!--#end changelang -->


<!--#begin changeskin -->
<form name="formskin" method="post" action="{ babPhpSelf }">
	<input type="hidden" name="tg" value="options">
	<input type="hidden" name="update" value="skin">
	<table width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
		<tr> 
			<td class="BabLoginCadreBackground"> 
				<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
					<tr> 
						<td align="center" nowrap valign="middle"> 
							<p>{ title }</p>
							<p>{ title_style }</p>
						</td>
					</tr>
					<tr> 
						<td align="center" nowrap valign="middle"> 
							<select name="skin" onChange="bab_showskinstyles(document.forms.formskin.skin.selectedIndex)">
								<option value="">{ tsiteskin }</option>
								<!--#in getnextskin -->
								<option value="{ skinval }" { skinselected }>{ skinname }</option>
								<!--#endin getnextskin -->
							</select>
							<select name="style">
							</select>
						</td>
					</tr>
					<tr> 
						<td align="center"> 
							<input type="submit" name="submit" value="{ update }">
							<br />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>

<br />

<script type="text/javascript">
	<!--
	var sksel = { skselectedindex };
	var stsel = { stselectedindex };
	var tab = new Array({ cntskins });
	<!--#in getnextskin -->
	tab[{ iindex }] = new Array();
	<!--#in getnextstyle -->
	tab[{ iindex }][tab[{ iindex }].length] = "{ styleval }";
	<!--#endin getnextstyle -->
	<!--#endin getnextskin -->
	
	function bab_showskinstyles(index) {
		for (i = document.forms.formskin.style.length; i >= 0; i--) {
			document.forms.formskin.style.options[i] = null; 
		}
		if (tab[index]) {
			for (var i = 0; i < tab[index].length; i++) {
				document.forms.formskin.style.options[i] = new Option(tab[index][i],tab[index][i]);
			}
			if ( index == sksel ) {
				document.forms.formskin.style.options[stsel].selected = true;
			}
		}
	}
	bab_showskinstyles(sksel);
	//-->
</script>
<!--#end changeskin -->



<!--#begin profileslist -->
<form name="listform" method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="idx" value="">
<input type="hidden" name="update" value="profiles">
<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td class="BabLoginCadreBackground"> 

<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center" class="BabLoginMenuBackground">
<tr> 
<td align="center" valign="middle"></td>
</tr>

<tr> 
<td align="right" nowrap valign="middle">
<table border="0" width="95%" cellpadding="2" cellspacing="0" align="center">
<tr><td align="center">{ profilestxt }</td></tr>
</table>
</td>
</tr>

<tr> 
<td  align="right" nowrap valign="middle">
<!--#in getnextprofile -->
<tr><td align="center">&nbsp;</td></tr>
<tr> 
<td align="center"> 
<table border="0" width="90%" cellpadding="2" cellspacing="0">
<tr>
<td valign="middle" width="1%">&nbsp;</td>
<td valign="middle"><!--#if brequired --><font color="red">*</font><!--#endif brequired -->&nbsp;{ pdesc } </td>
</tr>
<!--#if bmultiplicity -->
<!--#in getnextgrp -->
<!--#if altbg -->
<tr class="BabSiteAdminFontBackground">
<!--#else altbg -->
<tr class="BabForumBackground1">
<!--#endif altbg --> 
<td valign="middle" width="1%" align="right"> 
<input type="checkbox" name="grpids{ idprofile }[]" { grpcheck } value="{ grpid }">
</td>
<td valign="middle">{ grpdesc }</td>
</tr>        
<!--#endin getnextgrp -->
<!--#else bmultiplicity -->
<tr class="BabSiteAdminFontBackground">
<td valign="middle" width="1%">&nbsp;</td>
<td valign="middle">
<select name="grpids{ idprofile }[]">
<option value=""></option>
<!--#in getnextgrp -->
<option value="{ grpid }" { grpcheck }>{ grpdesc }</option>
<!--#endin getnextgrp -->
</select>
</td>
</tr>        
<!--#endif bmultiplicity -->
</table>
</td>
</tr>
<!--#endin getnextprofile -->
</td>
</tr>
<tr> 
<td valign="middle" align="center"><font color="red">*</font>&nbsp;{ requiredtxt }</td>
</tr>
<tr> 
<td valign="middle" align="center"> 
<input type="submit" name="submit" value="{ updatetxt }">
<br>
</td>
</tr>
</table>

</td>
</tr>
</table>
</form>
<br>
<!--#end profileslist -->


<!--#begin regionalsettings -->
<form name="regsetform" method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="update" value="regsettings">
	<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
	<tr> 
	<td class="BabLoginCadreBackground" align="center" valign="middle"> 
		<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
		<tr> 
		<td align="center" nowrap valign="middle" colspan="2">{ regsettings_title }</td>
		</tr>
		<tr> 
		<td width="30%" align="right" nowrap valign="middle">{ date_lformat_title }:</td>
		<td width="70%" valign="middle"> 
			
			<select name="datelformat">
				<option value=""></option>
				<!--#in getnextlongdate -->
				<option value="{ dateval }" <!--#if selected --> selected="selected" <!--#endif selected -->>{ datetxt }</option>
				<!--#endin getnextlongdate -->
			</select>
				
		</td>
		</tr>
		<tr> 
		<td width="30%" align="right" nowrap valign="middle">{ date_sformat_title }:</td>
		<td width="70%" valign="middle"> 
	
			<select name="datesformat">
			<option value=""></option>
			<!--#in getnextshortdate -->
			<option value="{ dateval }" <!--#if selected --> selected="selected" <!--#endif selected -->>{ datetxt }</option>
			<!--#endin getnextshortdate -->
			</select>

		</td>
		</tr>
		<tr> 
		<td width="30%" align="right" nowrap valign="middle">{ time_format_title }:</td>
		<td width="70%" valign="middle"> 

			<select name="timeformat">
			<option value=""></option>
			<!--#in getnexttime -->
			<option value="{ timeval }" <!--#if selected --> selected="selected" <!--#endif selected -->>{ timetxt }</option>
			<!--#endin getnexttime -->
			</select>
			
		</td>
		</tr>
		<tr> 
		<td colspan="2" align="center"> 
		<input type="submit" name="submit" value="{ update }" />
		<br>
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
</form>
<br />
<!--#end regionalsettings -->

<!--#begin unavailability -->
<script type="text/javascript">
<!--
function fdcb(day, month, year)
	{
	var f = document.forms.unavform;
	eval("f.fromdate.value='"+day+"/"+month+"/"+year+"'");
	eval("f.fromdate_disp.value='"+day+"/"+month+"/"+year+"'");
	}
function tdcb(day, month, year)
	{
	var f = document.forms.unavform;
	eval("f.todate.value='"+day+"/"+month+"/"+year+"'");
	eval("f.todate_disp.value='"+day+"/"+month+"/"+year+"'");
	}

function onSubstitute(id, fn)
{
document.forms.unavform.user_disp.value=fn;
document.forms.unavform.id_substitute.value=id;
this.focus();
op.close();
}

var op = null;
function openPopup(url)
{
if( op == null || op.closed )
	op = this.open(url+'&cb=onSubstitute', 'babuserslist', 'width=550,height=550,status=no,resizable=yes,top=200,left=200,scrollbars=yes');
else
	op.focus();
}

function resetcell()
{
var f = document.forms.unavform;
eval('f.user_disp.value=\'\';');
eval('f.id_substitute.value=\'\';');
}

//-->
</script>
<form name="unavform" method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="iduser" value="{ iduser }">
<input type="hidden" name="update" value="unavailability">
<table  border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
<td class="BabLoginCadreBackground" align="center" valign="middle"> 
<table  width="100%" border="0" cellspacing="0" cellpadding="5" align="center" class="BabLoginMenuBackground">
<tr> 
<td align="right" nowrap valign="middle">{ fromtxt } : </td>
<td valign="middle"> 
<input type="text" name="fromdate_disp" size="10" maxlength="10" value="{ fromdate_val }" disabled="disabled" />
<input type="hidden" name="fromdate" size="10" maxlength="10" value="{ fromdate_val }" /> <a href="{ urlfromdate  }"><img src="{ babSkinPath }images/Puces/calendar.gif" alt="" border="0" align="absmiddle" /></a>
</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ totxt } : </td>
<td valign="middle"> 
<input type="text" name="todate_disp" size="10" maxlength="10" value="{ todate_val }" disabled="disabled" />
<input type="hidden" name="todate" size="10" maxlength="10" value="{ todate_val }" /><a href="{ urltodate  }"><img src="{ babSkinPath }images/Puces/calendar.gif" alt="" border="0" align="absmiddle" /></a>

</td>
</tr>
<tr> 
<td align="right" nowrap valign="middle">{ usertxt } : </td>
<td valign="middle"> 
<input type="text" name="user_disp" size="45" maxlength="255" value="{ user_disp_val }" disabled="disabled" />&nbsp;<a href="#" onclick="openPopup('{ browseurl }');return false;"><img src="{ babSkinPath }images/Puces/head.gif" alt="" border="0" align="absmiddle" /></a>&nbsp;<a href="javascript:resetcell();"><img border="0" src="{ babSkinPath }images/Puces/del.gif" align="absmiddle" /></a>
<input type="hidden" name="id_substitute" value="{ id_substitute_val }" />
</td>
</tr>
<tr> 
<td nowrap>&nbsp;</td>
<td valign="middle"> 
<input type="submit" name="submit" value="{ update }">&nbsp;&nbsp;<input type="submit" name="bdelete" value="{ deletetxt }">
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<!--#end unavailability -->

<!--#begin workdays -->
<form name="workdays" method="post" action="{ babPhpSelf }">
<input type="hidden" name="tg" value="options">
<input type="hidden" name="update" value="workdays">
<table  width="50%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr> 
	<td class="BabLoginCadreBackground" align="center" valign="middle"> 
		<table  width="100%" border="0" cellspacing="0" cellpadding="5" class="BabLoginMenuBackground">
		<tr>
			<td style="padding:.5em 20%; text-align:left">
			<dl>
				<dt><h5>{ t_workdays }</h5><dt>
				<!--#in getnextshortday -->
				<dd ><input  type="checkbox" name="workdays[]" id="{ dayid }" value="{ dayid }"  { checked } /><label for="{ dayid }">{ shortday }</label></dd>
				<!--#endin getnextshortday -->
			</dl>
			<br />
			<div align="center">
				<input type="submit" value="{ t_submit }" />
				</div>
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</form>
<br>
<!--#end workdays -->
